package com.tianzeculture.stagebao.activity.message;

import android.widget.ListView;

import com.tianzeculture.stagebao.R;
import com.tianzeculture.stagebao.activity.message.adapter.ChatMessage;
import com.tianzeculture.stagebao.activity.message.adapter.ChatMessageAdapter;
import com.tianzeculture.stagebao.base.BaseActivity;
import com.tianzeculture.stagebao.network.enity.MSG;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Created by Administrator on 2018/7/12 0012.
 * 消息
 */

public class ChatMessageActivity extends BaseActivity {

    @BindView(R.id.lvMessage)
    ListView lvMessage;
    ChatMessageAdapter adapter;

    @Override
    public void initUI() {
        super.initUI();

        ChatMessage chatMessage = new ChatMessage();
        chatMessage.setTitle("方式发给");
        chatMessage.setCompany("方式sdafa发给");
        chatMessage.setContent("挂号费和规范合法的萨达是发送到发的鬼地方个电话对方方法和法规和热热鬼地方个地方个人头");
        chatMessage.setTime("07-11 15:30");

        List<ChatMessage> chatMessages = new ArrayList<>();
        chatMessages.add(chatMessage);
        chatMessages.add(chatMessage);
        chatMessages.add(chatMessage);

        adapter = new ChatMessageAdapter(this, chatMessages);
        lvMessage.setAdapter(adapter);
    }


    @Override
    public void refreshUI(int taskId, MSG msg) {
        super.refreshUI(taskId, msg);
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.activity_system_message;
    }
}
